<?php

$top_menu_array = array(
          'bio',
          'downloads',
          'forum',
          'tourdates',
          'links',
          'photos'
);


$top_menu = "";
reset($top_menu_array);
foreach ($top_menu_array as $top_menu_val)
{
   echo $top_menu_val ;  
   if ($id == $top_menu_val) {
        $top_menu .= "<td class=currentlink width=\"12%\"><div align=Center>";
        $top_menu .= "<a href=index.php?id=$top_menu_val>$top_menu_val</a></div></td>";
    } else {
        $top_menu .= "<td class=link width=\"12%\"><div align=Center>";
        $top_menu .= "<a href=index.php?id=$top_menu_val>$top_menu_val</a></div></td>";
    }
}

echo $top_menu; 
?>
